package com.ee.bruscar.model.dto.simple;

public class SimpleCustomer
{
	private String name;
	private SimpleAccountDetails details;
	private SimpleAddress address;
	

	public SimpleAddress getAddress()
	{
		return address;
	}

	public void setAddress(SimpleAddress address)
	{
		this.address = address;
	}

	public SimpleAccountDetails getDetails()
	{
		return details;
	}

	public void setDetails(SimpleAccountDetails details)
	{
		this.details = details;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}
	
	public String toString()
	{
		String out = name;
		if( details != null )
		{
			out += ", " + details.toString();
		}
		if( address != null )
		{
			out += ", " + address.toString();
		}
		return out;
	}

}
